// pages/mechIntr/mechIntr.js
var WxParse = require('../../wxParse/wxParse.js');

Page({
  /*页面的初始数据*/
  data: {
    info: ''
  },
  /*生命周期函数--监听页面加载*/
  onLoad: function (options) {
    var that=this;
    wx.getStorage({
      key: 'mech_details',
      success:function(res){
        that.setData({info: res.data})
        wx.showLoading({title: '加载中'})
        WxParse.wxParse('article', 'html', res.data.synopsis, that, 5);
      }
    })
  },
})